# 查找 OpenMP 包
find_package(OpenMP REQUIRED)

# 收集当前目录下所有 .cpp 文件
file(GLOB SOURCES "*.cpp")

# 创建可执行文件
add_executable(sat ${SOURCES})

# 链接 OpenMP 库
target_link_libraries(sat PRIVATE OpenMP::OpenMP_CXX)

# 设置输出目录
set_target_properties(sat PROPERTIES
    RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
)

# 添加包含目录（如果需要）
target_include_directories(sat PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})